<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
    @import "uview-ui/index.scss";
    @import "uview-ui/libs/css/flex.scss";
</style>
<script>
	export default {
		onLaunch: function() {
			console.log('App Launch');
            uni.setStorageSync('user_tab_bar',0);

            let u_id = '';
            if ( u_id = uni.getStorageSync('u_id')) {
                // 程序启动时 更新用户信息
                uni.$u.http.post('/api.php/Landlord/user_info', {
                    u_id: u_id
                }).then(response => {
                    uni.setStorageSync('userInfo', response);
                }).catch(error => {
                    console.error(error);
                });
            }
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
    @import "static/css/index.css";
</style>
